using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    using System;
    using System.Collections.Generic;

    [Table("FimMasReceiveType"), DataContract]
    public class MasReceiveType
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ReceiveTypeId", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public int ReceiveTypeId { get; set; }

		[ForeignKey("MasBudgetSource")]
		[DataMember, Display(Name = "BgmSourceId", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public int BgSourceId { get; set; }

		[DataMember, Display(Name = "ReceiveTypeName", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public string Name { get; set; }

        [ForeignKey("MasBankAccount")]
		[DataMember, Display(Name = "BankAccId", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public Nullable<int> BankAccId { get; set; }

        [ForeignKey("GlAccount")]
		[DataMember, Display(Name = "AccountId", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public Nullable<int> AccountId { get; set; }

		[DataMember, Display(Name = "InvConnectType", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public string InvConnectType { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasReceiveTypesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual BGM.MasBudgetSource MasBudgetSource { get; set; }

        public virtual FIM.MasBankAccount MasBankAccount { get; set; }

        public virtual ACM.MasAccount GlAccount { get; set; }

    }
}